export interface House {
    applyOrderId: string;
    accuratePrice: number | string; // 精确房价
    address: string; // 楼盘地址
    areaArr?: any;
    area: number; //	integer($int32) 区
    buildNum: number | string; //	integer($int32) 楼栋数
    chargingPileNum: number | string; //	integer($int32) 充电桩数
    city: number; //	integer($int32) 市
    coveredNum: number | string; //	integer($int32) 覆盖人数
    createTime?: Date; //	TimestampReq{...}
    createUser?: number | string; //	integer($int32)   创建人
    deliveryTime: Date | string; //	TimestampReq{...}
    elevatorNum: number | string; //	integer($int32)电梯数
    img: string; //	string  楼盘外观照地址
    inHouseRate: number | string; // integer($int32)入住率
    managementPrice: string; //	string物业管理费
    maxStorey: number | string; //	integer($int32)最高楼层
    minStorey: number | string; //	integer($int32) 最低楼层
    name: string; //	string楼盘名称
    overgroundParkingNum: number | string; //	integer($int32) 地上车位数
    positionLat: number | string; //	number($double) 纬度
    positionLng: number | string; //	number($double) 经度
    position?: any;
    premisesId?: number | string; //	integer($int64)楼盘ID
    province: number; //	integer($int32)  省
    status: string; //	string($byte)  楼盘状态
    tabooCode: string; //	string 禁忌行业，多个行业用','隔开
    type: string; //	string($byte)物业类型
    undergroundParkingNum: number | string; //	integer($int32)地下车位数
    unitNum: number | string; //	integer($int32)单元数
    updateTime?: Date | string; //	TimestampReq{...}
    updateUser?: number | string; //	integer($int32)更新人
    industry?: any;
    baidu: boolean;
    imgName: string;
    transferId: string;
    customerTableNum:string|number;
    [key: string]: any;
}
export interface pages {
    pageSize: number;
    pageNo: number;
    total: number;
}
export interface Props {
    value: string;
    label: string;
    children: string;
}
export interface HouseSelected {
    premiseName: string;
    areaArr: any;
    area: number;
    city: number;
    province: number;
    type: string;
    status: string;
    auditStatus: any;
    types: any;
    tabooCodes: any;
}
export interface options {
    code: number;
    name: string;
}

export interface IQueryHouse extends HouseSelected, pages {}
export class HousePages {
    // 被选择的数据, 查询时用
    selectedData: IQueryHouse = {
        premiseName: '',
        areaArr: [],
        area: 0,
        city: 0,
        province: 0,
        type: '',
        auditStatus: '3',
        status: '',
        types: [],
        tabooCodes: [],
        pageNo: 1,
        total: 0,
        pageSize: 10,
    };
    houseInfo: House = {
        applyOrderId: '',
        accuratePrice: '', // 精确房价
        address: '', // 楼盘地址
        areaArr: [],
        area: 0, //	integer($int32) 区
        buildNum: '', //	integer($int32) 楼栋数
        chargingPileNum: '', //	integer($int32) 充电桩数
        city: 0, //	integer($int32) 市
        coveredNum: '', //	integer($int32) 覆盖人数
        elevatorNum: '', //	integer($int32)电梯数
        img: '', //	string  楼盘外观照地址
        inHouseRate: '', // integer($int32)入住率
        managementPrice: '', //	string物业管理费
        maxStorey: '', //	integer($int32)最高楼层
        minStorey: '', //	integer($int32) 最低楼层
        name: '', //	string楼盘名称
        overgroundParkingNum: '', //	integer($int32) 地上车位数
        positionLat: '', //	number($double) 纬度
        positionLng: '', //	number($double) 经度
        position: '',
        premisesId: '', //	integer($int64)楼盘ID
        province: 0, //	integer($int32)  省
        status: '', //	string($byte)  楼盘状态
        tabooCode: '', //	string 禁忌行业，多个行业用','隔开
        type: '', //	string($byte)物业类型
        undergroundParkingNum: '', //	integer($int32)地下车位数
        unitNum: '', //	integer($int32)单元数
        deliveryTime: '',
        baidu: false,
        industry: [],
        imgName: '',
        auditImg: '',
        houseNum:'' ,       //总户数
        enterpriseNum:null,   //总入住企业数
        roomNumber:null,      //客房数  
        levelCode:'',       //写字楼,酒店,园区等级
        levelParent:'',     //写字楼,酒店,园区父等级
        brandName:'',       //综合体品牌
        customerPrice:'',   //客单价
        customerTableNum:'',//客桌数
        visitorsFlowrate:'',//日均人流量
        rentPrice:'',       //平均租金
        parkingRatio:'',    //车位数配比
        greeningRate:'',    //绿化率
        cubageRate:'',      //容积率
        buildingArea:'',    //项目总建筑面积
        developersName:'',  //开发商
        management:'',      //物业公司名称
        buildingLevel:'',   //楼盘级别 
        isCore:1
    };
    optionProps: Props = {
        value: 'id',
        label: 'name',
        children: 'childList',
    };
    // 展示的楼盘数据
    houseList: House[] = [];
    statusList: options[] = [
        { name: '正常', code: 1 },
        { name: '下架', code: 2 },
    ];
    title = '';
    content = '';
    loading = false;
    dialogVisible = false;
    isDrawerShow = false;
    buildingDrawerShow = false;
    buildingDrawerData = {
        areaArr: [],
        buildingId: '',
        buildingName: '',
    };
    isCreateDrawerShow = false;
    applyOrderId = '';
    premiseId = '';
    handleType = '';
    transferId = '';
    source='';
}

export enum AuditStatus {
    IN_REVIEW = '1',
    reject = '2',
    PASS = '3',
    DRAFT = '4',
}
export interface TabType {
    label: string;
    value: string;
}
